// -------------------------------------------------------------------------
//    @FileName			:    LogoDialog.cpp
//    @Author           :    Johance
//    @Date             :    2016-12-28
//    @Module           :    LogoDialog
//
// -------------------------------------------------------------------------
#include "LogoDialog.h"

#include <2d/CCActionInterval.h>
#include <2d/CCActionInstant.h>

#include "SampleDialog.h"

LogoDialog::LogoDialog()
{
}

LogoDialog::~LogoDialog()
{
}

bool LogoDialog::initLayout()
{	
	if(!NFCUIDialog::initLayout())
		return false;
		
    GetObjectByName(&m_pLogo, "m_pLogo");
    m_pLogo->setOpacity(0);
		
	return true;
}

void LogoDialog::initData(void *customData)
{
    m_pLogo->runAction(Sequence::create(FadeIn::create(1.0f), DelayTime::create(1.0f),  FadeOut::create(1.0f), CallFunc::create([]()
    {
		SampleDialog::showUI(false);
    }), nullptr));
}